<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
/* 页面最开始条件设置  */
//选择数据集后加载数据项
function loadDataItemListCell(){
	var setId = $("#dataSetSelectCell").val();
	$.ajax({
		url:'${ctx}/reportTemplateConditionsController/getAllDataItemBySetId/' + setId,
		type:'POST',
		cache:false,
		success:function(data){
			var dataItemOptions = "";
		    $.each(data,function(idx,item){
		    	dataItemOptions += "<option value='" + item.id + "'>" + item.itemChineseName + "</option>";
			});
		    $("#dataItemSelectCell option").remove();
		    dataItemOptionsFirst="<option value='0'>请选择</option>";
		    $(".dataItemSelectCellClass").append(dataItemOptionsFirst).append(dataItemOptions);
		}
	});
}
</script>
</head>
<body>

<input type="hidden" id="cellDataSetSelectId" value="${celldataSetSelectId}"></input>
<input type="hidden" id="cellDataItemSelectId" value="${dataItemSelectId}"></input>
<ul>
   <li id="rig_header" class="conditionCellLiClass">单元格条件设置</li>
   <span  id="rig_text_header">
		<a id="but_close_cell" href="#"></a>
		<a id="but_save_cell" href="#" onclick="saveCellConditions();"></a>
	</span>
	<div id="rig_tag">
		<ul>
          	<div id="pop-up_tag_a_div">
          	<li id="pop-up_tag_tab">
			<span  id="pop-up_tag_header">
				<div>
					&nbsp;&nbsp;行数：
					<input id="cellHangNum" type="text" value="1" style="width:50px; text-align:center;" readonly/>
					&nbsp;&nbsp;列数：
					<input id="cellLieNum" type="text" value="1" style="width:50px; text-align:center;" readonly/>
			        &nbsp;&nbsp;统计信息集：
			        <select id="dataSetSelectCell" class="dataSetSelectCellClass" name="dataSetSelectCellName" onchange="loadDataItemListCell();" style="width:80px"></select>
			      	&nbsp;&nbsp;统计信息项：
			        <select id="dataItemSelectCell" class="dataItemSelectCellClass" name="dataItemSelectCellName" style="width:80px"></select>
					&nbsp;&nbsp;逻辑运算符：
			          <select id="cellLogicOperationType" name="cellLogicOperationTypeName" style="width:80px">
						<option value="1">等于</option>
						<option value="2">大于等于</option>
						<option value="3">小于等于</option>
						<option value="4">大于</option>
						<option value="5">小于</option>
						<option value="6">不等于</option>
						<option value="7">包含</option>
						<option value="8">按左侧匹配</option>
						<option value="9">按右侧匹配</option>
					</select>
					&nbsp;&nbsp;值：<input type="text" value="" id="cellValue" style="width:80px;" name="cellValueName"></input>
				</div>
				<div style="height:10px"></div>
				<div>
					&nbsp;&nbsp;是否优先查询：
					  <select id="cellBracketsType" name="cellBracketsTypeName" style="width:80px">
					  	<option value="0" selected>请选择</option>
						<option value="1">左括号</option>
						<option value="2">右括号</option>
					  </select>
					&nbsp;&nbsp;连接符：
					  <select id="cellConnectorType" name="cellConnectorTypeName" style="width:80px">
					  	<option value="0" selected>请选择</option>
						<option value="1">并且</option>
						<option value="2">或者</option>
					  </select>
					<a id="but_add" href="#" onclick="addRowCellTiaojian('celltiaojianTable');"></a>
				</div>
				
			</span>
				<table class="pop-up_table" width="99%" border="0" cellspacing="0" cellpadding="0" id="celltiaojianTable">
	            	<tr>
	            		<td class="td_grey_header" align="center">行</td>
			            <td class="td_grey_header" align="center">列</td>
			            <td class="td_grey_header" align="center">信息集</td>
			            <td class="td_grey_header" align="center">信息项</td>
			            <td class="td_grey_header" align="center">逻辑预算符</td>
			            <td class="td_grey_header" align="center">值</td>
			            <td class="td_grey_header" align="center">是否优先查询</td>
			            <td class="td_grey_header" align="center">连接符</td>
			            <td style="display:none">存入MAP中的ID</td>
			            <td class="td_grey_header" align="center">操作</td>
			          </tr>
		        </table>
			</li>
		</div>
	</ul>
</div>
</ul>

</body>
</html>